package io;

import java.io.*;

/**
 * 转换输入流读取文本数据
 */
public class ISRDemo {
    public static void main(String[] args) throws IOException {
        //将当前代码输出到控制台上
        FileInputStream fis = new FileInputStream(
                "./src/main/java/io/ISRDemo.java");
        InputStreamReader isr = new InputStreamReader(fis);
        int d;
        while ((d = isr.read())!=-1){
            System.out.print((char) d);
        }
        isr.close();
    }
}
